This phrase refers to a situation where a smaller or less important part (the 'tail') is controlling or influencing the larger or more important whole (the 'dog'). It often describes scenarios where the usual order of authority or influence is reversed.